package com.gitee.wsl.android.search

import android.content.Context
import android.graphics.drawable.Drawable
import android.os.Bundle
import com.gitee.wsl.api.SavableSearchable
import com.gitee.wsl.android.drawable.icon.LauncherIcon
import com.gitee.wsl.android.drawable.icon.StaticLauncherIcon


interface AndroidSavableSearchable:SavableSearchable {
    fun launch(context: Context, options: Bundle?): Boolean

    fun getPlaceholderIcon(context: Context): StaticLauncherIcon

    suspend fun loadIcon(
        context: Context,
        size: Int,
        themed: Boolean
    ): LauncherIcon? = null

    suspend fun getProviderIcon(context: Context): Drawable? = null
}

